const ports = require("../../utils/ports.js")
// 获取应用实例
const app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    memberPointList: [],
    memberPointListPage:[],
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.getMyPointList()
  },
  getMyPointList() {
    var that = this
    var req = {}
    req.ListName = 'memberPointList'
    ports.ModuleMember.getMyPointList(req, that)
  },

  /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {
      var that = this;
      ports.ModuleAll.PullDownRefresh(that, () => {
        that.getMyPointList()
      })
    },
  
    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function () {
      var that = this;
      ports.ModuleAll.ReachBottom('memberPointList', that, res => {
        that.getMyPointList();
      })
    }
})